package com.zsrt.java.day20161227.zzd.demo1;

import java.util.Scanner;

public class Qianghongbao {
	public static void demo(double a,int b){
		String[] hongbao=new String[]{"红包1","红包2"};
			double random=Math.random()*1;
			double c=1.0-random;
			double d=1.0-c;
			double money[]=new double[]{c,d};
			
			for(int index=0;index<2;index++){
			System.out.println(hongbao[index] + ":" + money[index]);
	}
	}
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入红包金额：");
		double a=sc.nextDouble();
		System.out.println("请输入红包个数：");
		int b=sc.nextInt();
		demo(a,b);
		sc.close();
	}

}
